<template>
  <div class="p-4 space-y-4">
    <div class="text-xl font-bold text-blue-700 mb-2">md5EncryptWithSalt</div>
    <div class="text-gray-700 mb-2">对密码进行加盐 MD5 加密。</div>
    <div class="bg-white rounded-xl p-4 shadow">
      <div class="font-bold mb-2 text-blue-600">用法</div>
      <pre class="bg-blue-50 rounded p-3 text-sm text-blue-700 overflow-x-auto">
md5EncryptWithSalt('123456')
md5EncryptWithSalt('password', 'mysalt')</pre
      >
    </div>
    <div class="bg-white rounded-xl p-4 shadow">
      <div class="font-bold mb-2 text-green-600">示例1</div>
      <pre class="bg-green-50 rounded p-3 text-sm text-green-700 overflow-x-auto">
md5EncryptWithSalt('123456') // e10adc3949ba59abbe56e057f20f883e（示例）</pre
      >
    </div>
    <div class="bg-white rounded-xl p-4 shadow">
      <div class="font-bold mb-2 text-green-600">示例2</div>
      <pre class="bg-green-50 rounded p-3 text-sm text-green-700 overflow-x-auto">
md5EncryptWithSalt('password', 'mysalt') // 不同盐值结果不同</pre
      >
    </div>
    <div class="bg-white rounded-xl p-4 shadow border-l-4 border-blue-400">
      <div class="font-bold mb-2 text-gray-700">说明</div>
      <div class="text-xs text-gray-600 leading-relaxed">
        加盐加密可提升安全性，常用于用户密码存储。
      </div>
    </div>
  </div>
</template>
